import API from "@/api";
import type { ILessonResult } from "@/pages/lowPricedCourse/trialCourseHome/courseList/index.vue";

export const requestOverViewData = (sectionId: number): Promise<ILessonResult> => {
  return new Promise((resolve, reject) => {
    API.reviewData({ section_id: sectionId }).then(res => {

      let data: any = {
        isRelearn: true,
        isNeedLaunchPage: true,
        data: res,
      }

      resolve(data);
    })
      .catch(() => {
        reject();
      })
  })
}